package hu.gar.core.security;

import java.util.Collection;

import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

public class SpringAuthentication extends AbstractAuthenticationToken {

	private static final long serialVersionUID = -8450355996571874628L;

	private String userName;

	public SpringAuthentication(Collection<? extends GrantedAuthority> arg0,
			String userName) {
		super(arg0);
		this.userName = userName;
	}

	@Override
	public Object getCredentials() {
		return null;
	}

	@Override
	public Object getPrincipal() {
		return userName;
	}

}
